package view.views.dialogContentViews;

import java.awt.FlowLayout;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * @author Alexander Müller
 * 
 */
public class MessagePanel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JLabel label;

	public MessagePanel(String message) {

		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

		JPanel contentPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));

		label = new JLabel(message);

		contentPanel.add(label);

		this.add(contentPanel);

	}

	public JLabel getInfoLabel() {
		return label;
	}

}
